'use strict';
const parseTorrent = require('parse-torrent')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const res = parseTorrent('magnet:?xt=urn:btih:22CEA6083F9D8A0ED6F63D08B7D1E3BDEDA14B75&dn=Example+Torrent')
	console.log(1111,res)
	//返回数据给客户端
	return res
};
